package com.hainiu.cat.web.event;

import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * create by biji.zhao on 2021/6/25
 */
@Service
public class UserService {

    @Resource
    private ApplicationContext applicationContext;

    public void register(UserBean userBean) {
        applicationContext.publishEvent(new UserRegisterEvent(this, userBean));
    }
}
